POV-Ray : Newsgroups : povray.beta-test : light_group and media : Re: light_group and media Server Time
2 Nov 2024 13:21:20 EDT (-0400)
  Re: light_group and media  
From: Lutz-Peter Hooge
Date: 6 Nov 2001 09:16:47
Message: <MPG.16520f4740fa36bd9896b1@news.povray.org>
In article <3be79a97@news.povray.org>, tho### [at] trfde says...

> Light groups influence light sources. 

light_groups affect light_sources and light_sources affect scattering 
media. 

quote from the doc: "Note that some media effects depend upon light 
sources"

So light_groups SHOULD (indirectly) influence scattering media.

But they don't, I reported this a while ago, too.

example:
(both sheres _should_ be lit only by the green light_source)

#version 3.5;
camera
{
	location <0,0,-5>
}

light_source
{
	<1,1,-2>*10
	color rgb <1,0,0>
	media_interaction on
}


light_group
{
	light_source
	{
		<-1,-1,-2>*10
		color rgb <0,1,0>
		media_interaction on
	} 

	sphere
	{
		0,1 
		pigment{color rgb 1}
		translate x*1
	}
	
	sphere
	{
		0,1
		hollow
		pigment{color rgbt 1}
		interior{media{scattering {1,color rgb 10}}}
		translate -x*1
	}
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.